<%@page import="java.util.UUID"%>
<%@page import="com.demo.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div style="text-align: center;">
		<h1>
			<%
				int port = request.getLocalPort();
				String sessionid = request.getSession(true).getId();
				out.print(port + "=" + sessionid);
				User user = new User();
				user.setId(port + "");
				user.setDesc(UUID.randomUUID().toString());
				session.setAttribute("USER_", user);
			%>
		</h1>
	</div>
	<p></p>
	<div>
		<ul>
			<li><a href="c.jsp">清理session</a></li>
			<li><a href="a.jsp">中文乱码处理</a></li>
		</ul>
	</div>
</body>
</html>